def sandHtml(data):
    executionState = str(data["executionState"])
    projectName = str(data["plan_name"])
    caseTotal = str(data["case_total"])
    caseSuccess = str(data["successs_case"])
    caseFail = str(data["fail_case"])
    caseSkip = str(data["skip_case"])
    contentEmailHTM = str(data["Recombination"])
    html = '''<html>
                    <body>
                    <div style="margin-left: 2%">
                        <div style="font-size: 24px;color: #4cae4c;margin-top: 20px;" >
                        构建状态：''' + executionState + '''
                    </div>
                <hr>
                <div>
                <p style="color:#6C9AD9">详细地址：<a href="http://www.mamahaotest.top">http://www.mamahaotest.top</a></p>
                <p style="color:#3C763D">项目名称：''' + projectName + '''</p>
                <p style="color:#31708F">用例总数：''' + caseTotal + '''</p>
                <p style="color:#8A6D3B">通过用例数：''' + caseSuccess + '''</p>
                <p style="color:#A94442">失败用例数：''' + caseFail + '''</p>
                <p style="color:#999999">跳过用例数：''' + caseSkip + '''</p>
                </div>
                <hr>
                <div style="width: 70%">
                <table class="table table-hover" >
                    <tr>
                        <th>#id</th>
                        <th>用例名称</th>
                        <th>接口地址</th>
                        <th>用例结果</th>
                    </tr>
                    ''' + contentEmailHTM + '''
                </table>
                <div>
                </div>
                <hr>
                <div>
                <address>
                <strong>mamahao-test</strong><br>
                CuiHaiqi<br>
                <abbr title="Phone">P:</abbr>13067750910
                <a href="mailto:#">870801585@qq.com</a>
                </address>
                </div>	
                </body>
                <style>
                    .table{
                    width:100%
                    }
                    .table td{
                    text-align: center;
                    padding:1px;
                    color:#7A8DA5;
                    }
                    .table th{
                    color:#5196AE;
                    font-size:18px
                    }
                    .table th,td  {
                    border: 1px solid black;
                    }
                </style>
                </html>'''
    return html
